Repository navigation
fix(tools): find export body edits in function overlap lookups - #20394
oneandonlydean merged 1 commit into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation and added regression tests support the stated fix.
What I ran
Reviewed head c1ade43d887af61daa5e30b9d70a7e309f8f0cab. No commands or tests were run during this review; the author reports 171 passing overlap-tool tests on Linux with Python 3.14.10.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Both changed files read |
| Test execution | not run | Author reports 171 passing tests |
| Console and Windows behavior | not run | Python tooling change |
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read tools/pr_overlap.py and tools/tests/test_pr_overlap_names.py, including all changed lines, and reviewed the prepared diff, description, commits, and manifest. files.json was not available in the prepared review folder. Tests and the author's validation report were not independently verified; physical-console and Windows behavior were not tested.
To get this to a good state
Nothing is required.
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
What
pr_overlap.py --namesmissed an existing export when a PR changed only its multiline body. For example, open #19194 changessceAgcDcbSetIndexBufferandsceAgcDcbSetIndexSize, but the lookup reportsopen: nonefor both.Include body edits in names mode by mapping requested names/NIDs to base definitions and intersecting changed line ranges with balanced C++ function extents. Existing NID aliases are included. Comments and literals are masked, insertion boundaries are distinguished from edits after a function, and trailing function-try handlers remain part of the function. Only relevant production-library files are inspected. Added-export detection and the normal branch overlap path are unchanged.
Tested
Linux, Python 3.14.10; base
99d68050465c, changec1ade43d887a.python3 -m unittest discover -s tools/tests -p 'test_pr_overlap*.py' -v.6d5410a5eb13: main misses both index-buffer functions; change reports fix(libSceAgc): encode index buffer state for the arguments the console encodes #19194 for each. The normal branch probe returns identical export data before/after. This comparison inspected Git source/diffs without executing that PR's code.b824546ced5e; that later tree was not executed. No native-title/GPU or Windows testing.Test logs, main negative control, real-PR comparison and source patch, SHA-256
4a2e6b9ab4a9ed39ec63d989b1a48db5df9be474a481fa05eb8bf4120821bdcd; downloaded archive and all 12 members verified.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)